﻿@using System.Web.Optimization
@{
    var ci = new System.Globalization.CultureInfo(Request.UserLanguages[0]);
    string cultureJS = ci.TwoLetterISOLanguageName;
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>@ViewBag.Title</title>
    <link rel="SHORTCUT ICON" href="@Url.Content("~/favicon.ico")"  type="image/x-icon" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="ScrumPilot for TFS 2012">
    <meta name="author" content="R. Messie">
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700' rel='stylesheet' type='text/css'>
    @Styles.Render("~/Content/css")
    <link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.10.3/themes/redmond/jquery-ui.css"
        rel="stylesheet" type="text/css" />
    @Styles.Render("~/Content/bootstrap")
    @Styles.Render("~/Content/bootmetro1")
    @Styles.Render("~/Content/bootmetro2")
    @RenderSection("HeadContent", false)
</head>
<body>
    <img class="logo" alt="ScrumPilot logo" src="~/Content/img/logoScrumPilot_48.png" />
    <header class="navbar navbar-fixed-top navbar-inverse">
        <a class="brand" href="#" style="margin-left: 64px">ScrumPilot</a>
        <nav class="spnavbar navbar-inner">
            <ul class="nav nav-pills">
                <li class="active"><a href='@Url.Action("Index", "Home")'>Home</a> </li>
                <li><a href='@Url.Action("TasksList", "Tasks")'>Tasks</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Sprint</a>
                    <ul class="dropdown-menu">
                        <li><a href='@Url.Action("SprintIndex", "Sprint")'>Sprint</a></li>
                        <li><a href='@Url.Action("SprintsDef", "Sprint")'>Sprints definition</a></li>
                    </ul>
                </li>
                <li><a href='@Url.Action("Index", "Kanban")'>Kanban</a></li>
                <li><a href='@Url.Action("UsersList", "User")'>Users</a></li>
                <li><a href='@Url.Action("Projects", "Config")'>Projects</a></li>
            </ul>
            @Html.Partial("_BootstrapLogOnPartial")
        </nav>
    </header>
    <div class="row-fluid" style="padding-top: 20px">
        @RenderBody()
    </div>
    <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.0.3.min.js"></script>
    <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.migrate/jquery-migrate-1.1.1.min.js"></script>
    <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.10.3/jquery-ui.min.js"></script>
    <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js"></script>
    <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/additional-methods.min.js"></script>
    <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.validate.unobtrusive.min.js"></script>
    <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.unobtrusive-ajax.min.js"></script>
    <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/4.0/1/MicrosoftAjax.js"></script>
    <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js"></script>
    @Ajax.GlobalizationScript()
    @Scripts.Render("~/Commons/")
    @if (!String.IsNullOrWhiteSpace(cultureJS) && cultureJS != "en")
    {
        <script type="text/javascript" src="@Url.Content("~/Scripts/globinfo/jquery.timeago." + cultureJS + ".js")"></script>
    }
    @Scripts.Render("~/bundles/bootstrap")
    <script type="application/json" id="jsonpageoptions">{urls: [@RenderSection("PageOptionUrl", false)],options:{@RenderSection("PageOptionsOpt", false)}}</script>
    @RenderSection("AddJavaScript", false)
    <script type="text/javascript">
        var g_cultureJS = '@cultureJS';
        $.preferCulture('@Request.UserLanguages[0]');
        var g_ImgDirectory = '@Url.Content("~/Content/img/")';
        InitButtonsPage();
    </script>
    <script type="text/javascript">
        $(document).ready(function () {@RenderSection("JSDocumentReady", false); $('abbr.timeago').timeago(); });
    </script>
</body>
</html>
